using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class NewBehaviourScript : MonoBehaviour
{
    // Start is called before the first frame update
    private void Awake()
    {
        Debug.Log("awake");
    }

    private void OnEnable()
    {
        Debug.Log("onEnable");
    }

    class Student
    {
        public int stuId = 0;
        string name = null;
        int age = 0;
    }
    void Start()
    {
        int[,] arrInts = new int[7, 5];
        Dictionary<int[], Student> stuDic = new Dictionary<int[], Student>();
        for(int i = 0;i<arrInts.GetLength(0); i++)
        {
            for(int j = 0;j<arrInts.GetLength(1);j++)
            {
                int[] index = { i, j };
                Student student = new Student();
                student.stuId = i + j;
                stuDic.Add(index, student);
            }
        }

        foreach(Student stu in stuDic.Values)
        {
            Debug.Log(stu.stuId);
        }
    }

    // Update is called once per frame
    void Update()
    {
        
    }
}
